#!/bin/bash

#### 超参
CDSLIB=""    # CDS库路径
RUNDIR=""    # 运行目录

# create si.conf 文件
create_si_conf() {
	path=$1
    echo "create si.conf!!"
	echo "simSimulator = \"auCdl\"" > ${path}/si.conf
	echo "simNotIncremental = 't" >> ${path}/si.conf
	echo "simReNetlistAll = nil" >> ${path}/si.conf
	echo "simViewList = '(\"auCdl\" \"schematic\")" >> ${path}/si.conf
	echo "simStopList = '(\"auCdl\")" >> ${path}/si.conf
	echo "resistorModel = \"\"" >> ${path}/si.conf
	echo "shortRES = 2000.0" >> ${path}/si.conf
	echo "preserveRES = 't" >> ${path}/si.conf
	echo "checkRESVAL = 't" >> ${path}/si.conf
	echo "checkRESSIZE = 'nil" >> ${path}/si.conf
	echo "preserveCAP = 't" >> ${path}/si.conf
	echo "checkCAPVAL = 't" >> ${path}/si.conf
	echo "checkCAPAREA = 'nil" >> ${path}/si.conf
	echo "preserveDIO = 't" >> ${path}/si.conf
	echo "checkDIOAREA = 't" >> ${path}/si.conf
	echo "checkDIOPERI = 't" >> ${path}/si.conf
	echo "checkCAPPERI = 'nil" >> ${path}/si.conf
	echo "simPrintInhConnAttributes = 'nil" >> ${path}/si.conf
	echo "checkScale = \"meter\"" >> ${path}/si.conf
	echo "checkLDD = 'nil" >> ${path}/si.conf
	echo "pinMAP = 'nil" >> ${path}/si.conf
	echo "preserveBangInNetlist = 'nil" >> ${path}/si.conf
	echo "shrinkFACTOR = 0.0" >> ${path}/si.conf
	echo "globalPowerSig = \"\"" >> ${path}/si.conf
	echo "globalGndSig = \"\"" >> ${path}/si.conf
	echo "displayPININFO = 't" >> ${path}/si.conf
	echo "preserveALL = 't" >> ${path}/si.conf
	echo "setEQUIV = \"\"" >> ${path}/si.conf
	echo "incFILE = \"/pdk/tsmc/CLN06FF/ams/CLN6FF/tsmcN6/../Calibre/lvs/source.added\"" >> ${path}/si.conf
	echo "auCdlDefNetlistProc = \"ansCdlSubcktCall\"" >> ${path}/si.conf
}